<?php
/*
* Name: 随机小姐姐单页引流工具
* My URI: https://www.wpon.cn/lsp
* Author: 夏柔
* Author URI: https://www.aa1.cn/
* Description: 随机小姐姐单页引流工具
* Version: 1.0.0
*/
// 允许任意域名发起的跨域请求
header("Access-Control-Allow-Origin: *"); 
header("Access-Control-Allow-Methods:*"); 
header("Access-Control-Allow-Headers:*"); 
// 判断时间 接口来自 api.aa1.cn/time-tx
$api_url = 'https://v.api.aa1.cn/api/time-tx/index.php';
$data = file_get_contents($api_url);
$arr = json_decode($data, true);    // 将获取到的 JSON 数据解析成数组
$msg = $arr['msg']; // 时间段一言


?>
    <!DOCTYPE html>
    <html>

    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
        <title>随机小姐姐 - 小柔短视频</title>
        <script src="https://cdn.wpon.cn/duanshipin/io/js/mui.min.js"></script>
        <script src="https://cdn.wpon.cn/duanshipin/io/js/jquery.min.js"></script>
        <script src="https://cdn.wpon.cn/duanshipin/io/js/swiper.min.js"></script>
        <link href="https://cdn.wpon.cn/duanshipin/io/css/mui.min.css" rel="stylesheet">
        <link href="https://cdn.wpon.cn/duanshipin/io/css/swiper.min.css" rel="stylesheet">
        <link href="https://cdn.wpon.cn/duanshipin/io/css/style.css" rel="stylesheet">
        <link href="https://www.wpon.cn/lsp/2.css" rel="stylesheet">
        <script type="text/javascript" charset="utf-8">
            mui.init();
        </script>
    </head>

    <body style="background-color:#ffffff;">


        <div class="video-header">

            <div class="author author-round cfix">
                <img class="user-head-img" src="https://v.api.aa1.cn/api/api-tx/index.php?wpon=aosijur75fi5huyty5f">
                <div class="user-info">
                    <div class="user-name" style="font-size: 15px;">
                        <?php echo $msg;?>
                    </div>
                </div>
            </div>
        </div>
        <div id="wrap">
            <div class="swiper-container">
                <div class="swiper-slide">
                    <video autoplay="autoplay" class="video" id="player" src="video.xiarou" controls="controls" webkit-playsinline="" playsinline="" page-gesture="true" show-center-play-btn="true" show-play-btn="false" ></video> 
                    <!--<video   class="video" id="player" src="video.xiarou"  autoplay="autoplay" controls="true" webkit-playsinline="" playsinline=""><p>不支持video</p></video>-->
           
                    <div class="desc">
                        <div class="desc_name" id="xr">@是夏柔呀</div>
                        <div class="desc_title" id="sc">客官，小二正疯狂加载中！</div>
                    </div>
                    <div class="function" id="pause">
                        <!--<div class="dianzan">-->
                        <!--    <div id="hongxin" class="xin"></div>-->
                        <!--    <div class="dianzan_number">点赞</div>-->
                        <!--</div>-->
                        <div class="xiarou-go" id="next">
                            <img src="https://tucdn.wpon.cn/2022/11/11/a6680631e7de8.svg" alt="">
                            <div class="xiarou-go_number">下一个</div>
                        </div>
                        <div class="xiarou-go">
                            <img src="https://tucdn.wpon.cn/2022/11/11/e12cfbbbbe170.svg" alt="">
                            <div class="xiarou-go_number" id="switch">连续:开</div>
                        </div>
                        <div class="xiarou-go" onclick="window.open('https://t.aa1.cn/55cc')">
                            <img src="https://tucdn.wpon.cn/2022/11/11/fe028065eac8d.svg" alt="">
                            <div class="xiarou-go_number" id="dn">娱乐</div>
                        </div>
                    </div>
                </div>
                <!-- 底部tabbar -->
                <div class="botWrap">
                    <div class="tabbar">
                        <div class="tabbarIndex" onclick="window.open('http://www.wpon.cn/music')">
                            <img src="https://tucdn.wpon.cn/2022/11/11/9e57f12063313.svg" alt="xiaoxi.svg" title="xiaoxi.svg" />
                            <span>音乐</span>

                        </div>
                        <div class="tabbarCity" onclick="window.open('http://t.aa1.cn/4444')">
                            <img src="https://tucdn.wpon.cn/2022/11/11/3ce40d8540c3d.svg" alt="liaotian.svg" title="liaotian.svg" />
                            <span>聊天</span>
                        </div>
                        <div class="tabbarXiangji" onclick="window.open('http://www.wpon.cn/about')">
                            <img src="https://img.wpon.cn/2021/12/20/bf88b02addd11.svg" alt="zhenghunjiaoyou.svg" title="zhenghunjiaoyou.svg" />
                        </div>
                        <div class="tabbarSearch" onclick="window.open('http://www.wpon.cn/about')">
                            <img src="https://tucdn.wpon.cn/2022/11/11/39799b5d90880.svg" alt="">
                            <span>发现</span>
                        </div>
                        <div class="tabbarMine" onclick="window.open('http://m.wpon.cn')">
                            <img src="https://tucdn.wpon.cn/2022/11/11/17b42b34014f7.svg" alt="faxian.svg" title="faxian.svg" />
                            <span>会员</span>
                        </div>
                    </div>
                </div>


            </div>




    <link rel="stylesheet" href="//unpkg.byted-static.com/volcengine/veplayer/1.2.2/dist/index.min.css">
    <script src="//unpkg.byted-static.com/volcengine/veplayer/1.2.2/dist/index.min.js"></script>



            <script>
            
            
                (function(window, document) {
                    if (top != self) {
                        window.top.location.replace(self.location.href);
                    }
                    var get = function(id) {
                        return document.getElementById(id);
                    }
                    var bind = function(element, event, callback) {
                            return element.addEventListener(event, callback);
                        }
                        // 视频源
                    var auto = true;
                    var player = get('player');
                    var xr = document.getElementById("xr").innerText = '@是夏柔呀';
                    var randomm = function() {
                            //回调函数
                            $.getJSON("https://ml.v3.api.aa1.cn/girl-11-02/v3.php?wpon=2", function(data) {
                                var sb = document.getElementById("sc").innerText = (data.shuchu);
                                // 播放器控件
                                player.src = (data.ydz); // json 解析 获取源地址
                                // player.src = 'https://ml.v3.api.aa1.cn/girl-11-02/v3.php?wpon=2'; // api
                                player.play();
                                
                                 const playerSdk = new VePlayer({
         "isLive": true,
		"id": "mse",
		"lang": "zh",
		"ignores": [
				"DanmuPlugin"
		],
		"url": player.src,
		"width": 600,
		"height": 400,
		"autoplay": true,
		"loop": true,
		"fluid": true
      });

                            });
                        }
                        // 切换下一个视频
                    bind(get('next'), 'click', randomm);
                    bind(player, 'error', function() {
                        randomm();
                    });
                    // 自动播放
                    bind(get('switch'), 'click', function() {
                        auto = !auto;
                        this.innerText = '连续:' + (auto ? '开' : '关');
                    });
                    bind(player, 'ended', function() {
                        if (auto) randomm();
                    });

                })(window, document);
            </script>
            <script src="https://www.wpon.cn/lsp/js/j.js"></script>
            <script src="https://www.wpon.cn/lsp/js/xiarou.js"></script>
            <script src="https://www.wpon.cn/lsp/js/rem.js"></script>
            <script src="https://code.jquery.com/jquery-3.0.0.min.js"></script>

            <style>
                .desc {
                    bottom: 0.1rem;
                }
                
                .botWrap {
                    background: url(https://tucdn.wpon.cn/2022/11/11/e16bacde59fe2.png) no-repeat top center / 800px;
                }
                


            </style>
            
            <script charset="UTF-8" id="LA_COLLECT" src="//sdk.51.la/js-sdk-pro.min.js"></script>
            <script>LA.init({id: "JsHZWm2Fc6y3vizu",ck: "JsHZWm2Fc6y3vizu"})</script>


    </body>

    </html>